﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.work_plan.type.edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>编辑项目类型</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
		<script src="/aspnet_client/core/function.js"></script>
		<SCRIPT language="javascript">
function check_form()
{
   if(document.Form1.txtTypeNo.value == "")
  {
      alert("项目类型排序号不能为空！");
	document.Form1.txtTypeNo.focus();
    return false;
  }
  
   if(!checkIsInteger(document.Form1.txtTypeNo.value))
  {
      alert("项目类型排序号必须为整数！");
	document.Form1.txtTypeNo.focus();
    return false;
  }
  
  if(document.Form1.txtTypeName.value == "")
  {
      alert("项目类型名称不能为空！");
     document.Form1.txtTypeName.focus();
     return false;
  } 
  return true;
}
		</SCRIPT>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topmargin="5">
		<form id="Form1" method="post" runat="server">	
          <div class="main_div">	
			<asp:Panel id="pnlMain" runat="server">
				<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/edit.gif" WIDTH="22" HEIGHT="20" align="absMiddle"><span class="big3">
							编辑项目类型</span><br>
					</td>
				</tr>
			</table>
			<br>
				<TABLE class="tab_pub" cellSpacing="0" cellPadding="0" width="500" align="center" border="0">
					<TR>
						<TD class="ta_bg" noWrap>项目类型排序号：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtTypeNo" runat="server" MaxLength="4" Columns="4" CssClass="BigInput"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="ta_bg" noWrap>项目类型名称：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtTypeName" runat="server" MaxLength="200" Columns="30" CssClass="BigInput"></asp:TextBox></TD>
					</TR>
					<TR align="center">
						<TD noWrap colSpan="2" class="bnt_con">
						<INPUT class="BigButton" onClick="return check_form();" type="submit" value="保 存" name="submit">
							<INPUT class="BigButton" onClick="location='index.aspx';" type="button" value="返 回" name="back">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
